Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

password field bugs #1718

Merged
merged 3 commits into from
Mar 26, 2024
Merged

password field bugs #1718

merged 3 commits into from
Mar 26, 2024

Conversation

Shruti-Apte
Copy link
Contributor

What

@@ -9,7 +9,7 @@ export const resetPasswordFormValidationSchema = Yup.object().shape({
password: Yup.string()
.matches(/^\S.*\S$/, "Password cannot start or end with a blank space")
.matches(
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^\w\s\x00-\x1F\x7F])[\S\s]{8,}$/, // eslint-disable-line
/(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[_\W\s\x00-\x1F\x7F])[\S\s]{8,}$/, // eslint-disable-line
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Shruti-Apte Can you please confirm whether whitespace characters are allowed in passwords or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, whitespace was allowed before, Updated the code.

@prasanthchaduvula prasanthchaduvula removed their request for review March 20, 2024 13:23
@apoorv1316 apoorv1316 merged commit a18c4e6 into develop Mar 26, 2024
1 check passed
@apoorv1316 apoorv1316 deleted the sign_up_password_bugs branch March 26, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants